toBufferedImage

Creates an instance of BufferedImage from this Bitmap with the same dimensions.

Throws

when the size of this bitmap is empty.